﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using WinFormsMvp.Forms;
using EngineLayer;
using PresentationLayer.Views.ViewContracts;
using WinFormsMvp;
using PresentationLayer.Presenters;

namespace PresentationLayer.Views
{
    [PresenterBinding(typeof(ConfigurationsPresenter))]
    public class ConfigurationsForm : MvpForm<ConfigurationsModel>, IConfigurationsView
    {
        #region Private Variables
        private TabControl tabControl1;
        private TabPage tabPage1;
        private GroupBox groupBox1;
        private TextBox txtMessage1;
        private TextBox txtMessage2;
        private TextBox txtMessage3;
        private TextBox txtMessage4;
        private TextBox txtMessage5;
        private TabPage tabPage2;
        private Label label4;
        private Label label3;
        private Label label2;
        private Label label1;
        private TextBox txtFtpPort;
        private TextBox txtFTPHostName;
        private TextBox txtFTPPassword;
        private TextBox txtFtpUser;
        private TabPage tabPage3;
        private TabPage tabPage4;
        private Button btnAccept;
        private DataGridView dgCatagories;
        private TabPage tabPage5;
        private TabPage tabPage6;
        private Panel panel1;
        private Label label6;
        private Label label5;
        private ComboBox cmbPrinterKitchen;
        private ComboBox cmbPrinterCashier;
        private TextBox txtRateExchange;
        private TextBox txtTax;
        private TabPage tabPage7;
        private TextBox txtRFC;
        private Label label14;
        private TextBox TxtPhone;
        private Label label13;
        private Label label12;
        private TextBox txtCity;
        private TextBox txtState;
        private Label label11;
        private Label label10;
        private TextBox txtCodeZip;
        private TextBox txtAddres2;
        private TextBox txtAddres1;
        private Label label9;
        private Label label8;
        private Label label7;
        private TextBox txtFranchise;
        private DateTimePicker dtStartDate;
        private Label label15;
        private Button btnCancel;
        private Label label20;
        private Label label19;
        private Label label18;
        private Label label17;
        private Label label16;
        private Label lblTipoCambio;
        private Label lblIVA;
        private Label label21;
        private TextBox txtContact;
        private DataGridViewTextBoxColumn ID;
        private DataGridViewTextBoxColumn DescripciónCorta;
        private DataGridViewTextBoxColumn DescripciónLarga;
        private DataGridViewTextBoxColumn ProductID;
        private TextBox txtAlias;
        private Label label22;
        private Label label23;
        private TextBox txtCode;
        private TabPage tabPage8;
        private DataGridView dgUpdates;
        private DataGridViewTextBoxColumn dataGridViewTextBoxColumn1;
        private DataGridViewTextBoxColumn dataGridViewTextBoxColumn2;
        private DataGridViewTextBoxColumn dataGridViewTextBoxColumn3;
        private DataGridViewCheckBoxColumn dataGridViewTextBoxColumn4;
  
        #endregion

        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            this.InitializeComponent();
        }

        private void InitializeComponent()
        {
            DataGridViewCellStyle dataGridViewCellStyle1 = new DataGridViewCellStyle();
            DataGridViewCellStyle dataGridViewCellStyle2 = new DataGridViewCellStyle();
            DataGridViewCellStyle dataGridViewCellStyle3 = new DataGridViewCellStyle();
            DataGridViewCellStyle dataGridViewCellStyle4 = new DataGridViewCellStyle();
            this.tabControl1 = new TabControl();
            this.tabPage7 = new TabPage();
            this.label23 = new Label();
            this.txtCode = new TextBox();
            this.txtAlias = new TextBox();
            this.label22 = new Label();
            this.label21 = new Label();
            this.txtContact = new TextBox();
            this.dtStartDate = new DateTimePicker();
            this.label15 = new Label();
            this.label14 = new Label();
            this.TxtPhone = new TextBox();
            this.label13 = new Label();
            this.label12 = new Label();
            this.txtCity = new TextBox();
            this.txtState = new TextBox();
            this.label11 = new Label();
            this.label10 = new Label();
            this.txtCodeZip = new TextBox();
            this.txtAddres2 = new TextBox();
            this.txtAddres1 = new TextBox();
            this.label9 = new Label();
            this.label8 = new Label();
            this.label7 = new Label();
            this.txtFranchise = new TextBox();
            this.txtRFC = new TextBox();
            this.tabPage1 = new TabPage();
            this.groupBox1 = new GroupBox();
            this.label20 = new Label();
            this.label19 = new Label();
            this.label18 = new Label();
            this.label17 = new Label();
            this.label16 = new Label();
            this.txtMessage1 = new TextBox();
            this.txtMessage2 = new TextBox();
            this.txtMessage3 = new TextBox();
            this.txtMessage4 = new TextBox();
            this.txtMessage5 = new TextBox();
            this.tabPage2 = new TabPage();
            this.label4 = new Label();
            this.label3 = new Label();
            this.label2 = new Label();
            this.label1 = new Label();
            this.txtFtpPort = new TextBox();
            this.txtFTPHostName = new TextBox();
            this.txtFTPPassword = new TextBox();
            this.txtFtpUser = new TextBox();
            this.tabPage3 = new TabPage();
            this.dgCatagories = new DataGridView();
            this.ID = new DataGridViewTextBoxColumn();
            this.DescripciónCorta = new DataGridViewTextBoxColumn();
            this.DescripciónLarga = new DataGridViewTextBoxColumn();
            this.ProductID = new DataGridViewTextBoxColumn();
            this.tabPage4 = new TabPage();
            this.panel1 = new Panel();
            this.label6 = new Label();
            this.label5 = new Label();
            this.cmbPrinterKitchen = new ComboBox();
            this.cmbPrinterCashier = new ComboBox();
            this.tabPage5 = new TabPage();
            this.lblTipoCambio = new Label();
            this.txtRateExchange = new TextBox();
            this.tabPage6 = new TabPage();
            this.lblIVA = new Label();
            this.txtTax = new TextBox();
            this.tabPage8 = new TabPage();
            this.dgUpdates = new DataGridView();
            this.dataGridViewTextBoxColumn1 = new DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn2 = new DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn3 = new DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn4 = new DataGridViewCheckBoxColumn();
            this.btnAccept = new Button();
            this.btnCancel = new Button();
            this.tabControl1.SuspendLayout();
            this.tabPage7.SuspendLayout();
            this.tabPage1.SuspendLayout();
            this.groupBox1.SuspendLayout();
            this.tabPage2.SuspendLayout();
            this.tabPage3.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.dgCatagories)).BeginInit();
            this.tabPage4.SuspendLayout();
            this.panel1.SuspendLayout();
            this.tabPage5.SuspendLayout();
            this.tabPage6.SuspendLayout();
            this.tabPage8.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.dgUpdates)).BeginInit();
            this.SuspendLayout();
            // 
            // tabControl1
            // 
            this.tabControl1.Controls.Add(this.tabPage7);
            this.tabControl1.Controls.Add(this.tabPage1);
            this.tabControl1.Controls.Add(this.tabPage2);
            this.tabControl1.Controls.Add(this.tabPage3);
            this.tabControl1.Controls.Add(this.tabPage4);
            this.tabControl1.Controls.Add(this.tabPage5);
            this.tabControl1.Controls.Add(this.tabPage6);
            this.tabControl1.Controls.Add(this.tabPage8);
            this.tabControl1.Location = new System.Drawing.Point(12, 12);
            this.tabControl1.Name = "tabControl1";
            this.tabControl1.SelectedIndex = 0;
            this.tabControl1.Size = new System.Drawing.Size(522, 262);
            this.tabControl1.TabIndex = 0;
            // 
            // tabPage7
            // 
            this.tabPage7.Controls.Add(this.label23);
            this.tabPage7.Controls.Add(this.txtCode);
            this.tabPage7.Controls.Add(this.txtAlias);
            this.tabPage7.Controls.Add(this.label22);
            this.tabPage7.Controls.Add(this.label21);
            this.tabPage7.Controls.Add(this.txtContact);
            this.tabPage7.Controls.Add(this.dtStartDate);
            this.tabPage7.Controls.Add(this.label15);
            this.tabPage7.Controls.Add(this.label14);
            this.tabPage7.Controls.Add(this.TxtPhone);
            this.tabPage7.Controls.Add(this.label13);
            this.tabPage7.Controls.Add(this.label12);
            this.tabPage7.Controls.Add(this.txtCity);
            this.tabPage7.Controls.Add(this.txtState);
            this.tabPage7.Controls.Add(this.label11);
            this.tabPage7.Controls.Add(this.label10);
            this.tabPage7.Controls.Add(this.txtCodeZip);
            this.tabPage7.Controls.Add(this.txtAddres2);
            this.tabPage7.Controls.Add(this.txtAddres1);
            this.tabPage7.Controls.Add(this.label9);
            this.tabPage7.Controls.Add(this.label8);
            this.tabPage7.Controls.Add(this.label7);
            this.tabPage7.Controls.Add(this.txtFranchise);
            this.tabPage7.Controls.Add(this.txtRFC);
            this.tabPage7.Location = new System.Drawing.Point(4, 22);
            this.tabPage7.Name = "tabPage7";
            this.tabPage7.Padding = new Padding(3);
            this.tabPage7.Size = new System.Drawing.Size(514, 236);
            this.tabPage7.TabIndex = 6;
            this.tabPage7.Text = "Franquicia";
            this.tabPage7.UseVisualStyleBackColor = true;
            // 
            // label23
            // 
            this.label23.AutoSize = true;
            this.label23.Location = new System.Drawing.Point(354, 18);
            this.label23.Name = "label23";
            this.label23.Size = new System.Drawing.Size(43, 13);
            this.label23.TabIndex = 2;
            this.label23.Text = "C&odigo:";
            // 
            // txtCode
            // 
            this.txtCode.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
            this.txtCode.Location = new System.Drawing.Point(403, 15);
            this.txtCode.Name = "txtCode";
            this.txtCode.Size = new System.Drawing.Size(94, 20);
            this.txtCode.TabIndex = 3;
            this.txtCode.TextAlign = HorizontalAlignment.Center;
            // 
            // txtAlias
            // 
            this.txtAlias.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
            this.txtAlias.Location = new System.Drawing.Point(87, 15);
            this.txtAlias.Name = "txtAlias";
            this.txtAlias.Size = new System.Drawing.Size(230, 20);
            this.txtAlias.TabIndex = 1;
            // 
            // label22
            // 
            this.label22.AutoSize = true;
            this.label22.Location = new System.Drawing.Point(8, 18);
            this.label22.Name = "label22";
            this.label22.Size = new System.Drawing.Size(32, 13);
            this.label22.TabIndex = 0;
            this.label22.Text = "Ali&as:";
            // 
            // label21
            // 
            this.label21.AutoSize = true;
            this.label21.Location = new System.Drawing.Point(8, 199);
            this.label21.Name = "label21";
            this.label21.Size = new System.Drawing.Size(53, 13);
            this.label21.TabIndex = 22;
            this.label21.Text = "C&ontacto:";
            // 
            // txtContact
            // 
            this.txtContact.BackColor = System.Drawing.SystemColors.Window;
            this.txtContact.Location = new System.Drawing.Point(87, 196);
            this.txtContact.Name = "txtContact";
            this.txtContact.Size = new System.Drawing.Size(410, 20);
            this.txtContact.TabIndex = 23;
            // 
            // dtStartDate
            // 
            this.dtStartDate.CustomFormat = "";
            this.dtStartDate.Format = DateTimePickerFormat.Short;
            this.dtStartDate.Location = new System.Drawing.Point(379, 170);
            this.dtStartDate.Name = "dtStartDate";
            this.dtStartDate.Size = new System.Drawing.Size(118, 20);
            this.dtStartDate.TabIndex = 21;
            this.dtStartDate.Value = new System.DateTime(2013, 9, 23, 22, 44, 54, 0);
            // 
            // label15
            // 
            this.label15.AutoSize = true;
            this.label15.Location = new System.Drawing.Point(262, 173);
            this.label15.Name = "label15";
            this.label15.Size = new System.Drawing.Size(111, 13);
            this.label15.TabIndex = 20;
            this.label15.Text = "&Inicio de operaciones:";
            // 
            // label14
            // 
            this.label14.AutoSize = true;
            this.label14.Location = new System.Drawing.Point(8, 173);
            this.label14.Name = "label14";
            this.label14.Size = new System.Drawing.Size(52, 13);
            this.label14.TabIndex = 18;
            this.label14.Text = "&Teléfono:";
            // 
            // TxtPhone
            // 
            this.TxtPhone.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
            this.TxtPhone.Location = new System.Drawing.Point(87, 170);
            this.TxtPhone.Name = "TxtPhone";
            this.TxtPhone.Size = new System.Drawing.Size(162, 20);
            this.TxtPhone.TabIndex = 19;
            // 
            // label13
            // 
            this.label13.AutoSize = true;
            this.label13.Location = new System.Drawing.Point(262, 147);
            this.label13.Name = "label13";
            this.label13.Size = new System.Drawing.Size(55, 13);
            this.label13.TabIndex = 16;
            this.label13.Text = "&Municipio:";
            // 
            // label12
            // 
            this.label12.AutoSize = true;
            this.label12.Location = new System.Drawing.Point(8, 147);
            this.label12.Name = "label12";
            this.label12.Size = new System.Drawing.Size(43, 13);
            this.label12.TabIndex = 14;
            this.label12.Text = "&Estado:";
            // 
            // txtCity
            // 
            this.txtCity.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
            this.txtCity.Location = new System.Drawing.Point(351, 144);
            this.txtCity.Name = "txtCity";
            this.txtCity.Size = new System.Drawing.Size(146, 20);
            this.txtCity.TabIndex = 17;
            // 
            // txtState
            // 
            this.txtState.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
            this.txtState.Location = new System.Drawing.Point(87, 144);
            this.txtState.Name = "txtState";
            this.txtState.Size = new System.Drawing.Size(162, 20);
            this.txtState.TabIndex = 15;
            // 
            // label11
            // 
            this.label11.AutoSize = true;
            this.label11.Location = new System.Drawing.Point(370, 121);
            this.label11.Name = "label11";
            this.label11.Size = new System.Drawing.Size(27, 13);
            this.label11.TabIndex = 12;
            this.label11.Text = "C.&P.";
            // 
            // label10
            // 
            this.label10.AutoSize = true;
            this.label10.Location = new System.Drawing.Point(8, 121);
            this.label10.Name = "label10";
            this.label10.Size = new System.Drawing.Size(45, 13);
            this.label10.TabIndex = 10;
            this.label10.Text = "Colo&nia:";
            // 
            // txtCodeZip
            // 
            this.txtCodeZip.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
            this.txtCodeZip.Location = new System.Drawing.Point(403, 118);
            this.txtCodeZip.Name = "txtCodeZip";
            this.txtCodeZip.Size = new System.Drawing.Size(94, 20);
            this.txtCodeZip.TabIndex = 13;
            this.txtCodeZip.TextAlign = HorizontalAlignment.Center;
            // 
            // txtAddres2
            // 
            this.txtAddres2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
            this.txtAddres2.Location = new System.Drawing.Point(87, 118);
            this.txtAddres2.Name = "txtAddres2";
            this.txtAddres2.Size = new System.Drawing.Size(230, 20);
            this.txtAddres2.TabIndex = 11;
            // 
            // txtAddres1
            // 
            this.txtAddres1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
            this.txtAddres1.Location = new System.Drawing.Point(87, 92);
            this.txtAddres1.Name = "txtAddres1";
            this.txtAddres1.Size = new System.Drawing.Size(410, 20);
            this.txtAddres1.TabIndex = 9;
            // 
            // label9
            // 
            this.label9.AutoSize = true;
            this.label9.Location = new System.Drawing.Point(8, 95);
            this.label9.Name = "label9";
            this.label9.Size = new System.Drawing.Size(55, 13);
            this.label9.TabIndex = 8;
            this.label9.Text = "&Dirección:";
            // 
            // label8
            // 
            this.label8.AutoSize = true;
            this.label8.Location = new System.Drawing.Point(8, 43);
            this.label8.Name = "label8";
            this.label8.Size = new System.Drawing.Size(59, 13);
            this.label8.TabIndex = 4;
            this.label8.Text = "&Franquicia:";
            // 
            // label7
            // 
            this.label7.AutoSize = true;
            this.label7.Location = new System.Drawing.Point(8, 69);
            this.label7.Name = "label7";
            this.label7.Size = new System.Drawing.Size(34, 13);
            this.label7.TabIndex = 6;
            this.label7.Text = "&R.F.C";
            // 
            // txtFranchise
            // 
            this.txtFranchise.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
            this.txtFranchise.Location = new System.Drawing.Point(87, 40);
            this.txtFranchise.Name = "txtFranchise";
            this.txtFranchise.Size = new System.Drawing.Size(230, 20);
            this.txtFranchise.TabIndex = 5;
            // 
            // txtRFC
            // 
            this.txtRFC.Location = new System.Drawing.Point(87, 66);
            this.txtRFC.Name = "txtRFC";
            this.txtRFC.Size = new System.Drawing.Size(230, 20);
            this.txtRFC.TabIndex = 7;
            // 
            // tabPage1
            // 
            this.tabPage1.Controls.Add(this.groupBox1);
            this.tabPage1.Location = new System.Drawing.Point(4, 22);
            this.tabPage1.Name = "tabPage1";
            this.tabPage1.Padding = new Padding(3);
            this.tabPage1.Size = new System.Drawing.Size(514, 236);
            this.tabPage1.TabIndex = 0;
            this.tabPage1.Text = "Mensajes";
            this.tabPage1.UseVisualStyleBackColor = true;
            // 
            // groupBox1
            // 
            this.groupBox1.Controls.Add(this.label20);
            this.groupBox1.Controls.Add(this.label19);
            this.groupBox1.Controls.Add(this.label18);
            this.groupBox1.Controls.Add(this.label17);
            this.groupBox1.Controls.Add(this.label16);
            this.groupBox1.Controls.Add(this.txtMessage1);
            this.groupBox1.Controls.Add(this.txtMessage2);
            this.groupBox1.Controls.Add(this.txtMessage3);
            this.groupBox1.Controls.Add(this.txtMessage4);
            this.groupBox1.Controls.Add(this.txtMessage5);
            this.groupBox1.Dock = DockStyle.Fill;
            this.groupBox1.Location = new System.Drawing.Point(3, 3);
            this.groupBox1.Name = "groupBox1";
            this.groupBox1.Size = new System.Drawing.Size(508, 230);
            this.groupBox1.TabIndex = 0;
            this.groupBox1.TabStop = false;
            this.groupBox1.Text = "Mensajes";
            // 
            // label20
            // 
            this.label20.AutoSize = true;
            this.label20.Location = new System.Drawing.Point(56, 147);
            this.label20.Name = "label20";
            this.label20.Size = new System.Drawing.Size(23, 13);
            this.label20.TabIndex = 8;
            this.label20.Text = "# 5";
            // 
            // label19
            // 
            this.label19.AutoSize = true;
            this.label19.Location = new System.Drawing.Point(56, 121);
            this.label19.Name = "label19";
            this.label19.Size = new System.Drawing.Size(23, 13);
            this.label19.TabIndex = 6;
            this.label19.Text = "# 4";
            // 
            // label18
            // 
            this.label18.AutoSize = true;
            this.label18.Location = new System.Drawing.Point(56, 95);
            this.label18.Name = "label18";
            this.label18.Size = new System.Drawing.Size(23, 13);
            this.label18.TabIndex = 4;
            this.label18.Text = "# 3";
            // 
            // label17
            // 
            this.label17.AutoSize = true;
            this.label17.Location = new System.Drawing.Point(56, 69);
            this.label17.Name = "label17";
            this.label17.Size = new System.Drawing.Size(23, 13);
            this.label17.TabIndex = 2;
            this.label17.Text = "# 2";
            // 
            // label16
            // 
            this.label16.AutoSize = true;
            this.label16.Location = new System.Drawing.Point(56, 43);
            this.label16.Name = "label16";
            this.label16.Size = new System.Drawing.Size(23, 13);
            this.label16.TabIndex = 0;
            this.label16.Text = "# 1";
            // 
            // txtMessage1
            // 
            this.txtMessage1.AcceptsReturn = true;
            this.txtMessage1.AcceptsTab = true;
            this.txtMessage1.Location = new System.Drawing.Point(103, 40);
            this.txtMessage1.Name = "txtMessage1";
            this.txtMessage1.Size = new System.Drawing.Size(331, 20);
            this.txtMessage1.TabIndex = 1;
            // 
            // txtMessage2
            // 
            this.txtMessage2.AcceptsReturn = true;
            this.txtMessage2.AcceptsTab = true;
            this.txtMessage2.Location = new System.Drawing.Point(103, 66);
            this.txtMessage2.Name = "txtMessage2";
            this.txtMessage2.Size = new System.Drawing.Size(331, 20);
            this.txtMessage2.TabIndex = 3;
            // 
            // txtMessage3
            // 
            this.txtMessage3.AcceptsReturn = true;
            this.txtMessage3.AcceptsTab = true;
            this.txtMessage3.Location = new System.Drawing.Point(103, 92);
            this.txtMessage3.Name = "txtMessage3";
            this.txtMessage3.Size = new System.Drawing.Size(331, 20);
            this.txtMessage3.TabIndex = 5;
            // 
            // txtMessage4
            // 
            this.txtMessage4.AcceptsReturn = true;
            this.txtMessage4.AcceptsTab = true;
            this.txtMessage4.Location = new System.Drawing.Point(103, 118);
            this.txtMessage4.Name = "txtMessage4";
            this.txtMessage4.Size = new System.Drawing.Size(331, 20);
            this.txtMessage4.TabIndex = 7;
            // 
            // txtMessage5
            // 
            this.txtMessage5.AcceptsReturn = true;
            this.txtMessage5.AcceptsTab = true;
            this.txtMessage5.Location = new System.Drawing.Point(103, 144);
            this.txtMessage5.Name = "txtMessage5";
            this.txtMessage5.Size = new System.Drawing.Size(331, 20);
            this.txtMessage5.TabIndex = 9;
            // 
            // tabPage2
            // 
            this.tabPage2.Controls.Add(this.label4);
            this.tabPage2.Controls.Add(this.label3);
            this.tabPage2.Controls.Add(this.label2);
            this.tabPage2.Controls.Add(this.label1);
            this.tabPage2.Controls.Add(this.txtFtpPort);
            this.tabPage2.Controls.Add(this.txtFTPHostName);
            this.tabPage2.Controls.Add(this.txtFTPPassword);
            this.tabPage2.Controls.Add(this.txtFtpUser);
            this.tabPage2.Location = new System.Drawing.Point(4, 22);
            this.tabPage2.Name = "tabPage2";
            this.tabPage2.Padding = new Padding(3);
            this.tabPage2.Size = new System.Drawing.Size(514, 236);
            this.tabPage2.TabIndex = 1;
            this.tabPage2.Text = "FTP";
            this.tabPage2.UseVisualStyleBackColor = true;
            // 
            // label4
            // 
            this.label4.AutoSize = true;
            this.label4.Location = new System.Drawing.Point(7, 127);
            this.label4.Name = "label4";
            this.label4.Size = new System.Drawing.Size(41, 13);
            this.label4.TabIndex = 7;
            this.label4.Text = "Puerto:";
            // 
            // label3
            // 
            this.label3.AutoSize = true;
            this.label3.Location = new System.Drawing.Point(7, 101);
            this.label3.Name = "label3";
            this.label3.Size = new System.Drawing.Size(63, 13);
            this.label3.TabIndex = 6;
            this.label3.Text = "Host Name:";
            // 
            // label2
            // 
            this.label2.AutoSize = true;
            this.label2.Location = new System.Drawing.Point(7, 75);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(64, 13);
            this.label2.TabIndex = 5;
            this.label2.Text = "Contraseña:";
            // 
            // label1
            // 
            this.label1.AutoSize = true;
            this.label1.Location = new System.Drawing.Point(7, 49);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(46, 13);
            this.label1.TabIndex = 4;
            this.label1.Text = "Usuario:";
            // 
            // txtFtpPort
            // 
            this.txtFtpPort.AcceptsReturn = true;
            this.txtFtpPort.AcceptsTab = true;
            this.txtFtpPort.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
            this.txtFtpPort.Location = new System.Drawing.Point(119, 124);
            this.txtFtpPort.Name = "txtFtpPort";
            this.txtFtpPort.Size = new System.Drawing.Size(358, 20);
            this.txtFtpPort.TabIndex = 3;
            // 
            // txtFTPHostName
            // 
            this.txtFTPHostName.AcceptsReturn = true;
            this.txtFTPHostName.AcceptsTab = true;
            this.txtFTPHostName.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
            this.txtFTPHostName.Location = new System.Drawing.Point(119, 98);
            this.txtFTPHostName.Name = "txtFTPHostName";
            this.txtFTPHostName.Size = new System.Drawing.Size(358, 20);
            this.txtFTPHostName.TabIndex = 2;
            // 
            // txtFTPPassword
            // 
            this.txtFTPPassword.AcceptsReturn = true;
            this.txtFTPPassword.AcceptsTab = true;
            this.txtFTPPassword.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
            this.txtFTPPassword.Location = new System.Drawing.Point(119, 72);
            this.txtFTPPassword.Name = "txtFTPPassword";
            this.txtFTPPassword.PasswordChar = '*';
            this.txtFTPPassword.Size = new System.Drawing.Size(358, 20);
            this.txtFTPPassword.TabIndex = 1;
            // 
            // txtFtpUser
            // 
            this.txtFtpUser.AcceptsReturn = true;
            this.txtFtpUser.AcceptsTab = true;
            this.txtFtpUser.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
            this.txtFtpUser.Location = new System.Drawing.Point(119, 46);
            this.txtFtpUser.Name = "txtFtpUser";
            this.txtFtpUser.Size = new System.Drawing.Size(358, 20);
            this.txtFtpUser.TabIndex = 0;
            // 
            // tabPage3
            // 
            this.tabPage3.Controls.Add(this.dgCatagories);
            this.tabPage3.Location = new System.Drawing.Point(4, 22);
            this.tabPage3.Name = "tabPage3";
            this.tabPage3.Padding = new Padding(3);
            this.tabPage3.Size = new System.Drawing.Size(514, 236);
            this.tabPage3.TabIndex = 2;
            this.tabPage3.Text = "Categorias";
            this.tabPage3.UseVisualStyleBackColor = true;
            // 
            // dgCatagories
            // 
            this.dgCatagories.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
            this.dgCatagories.Columns.AddRange(new DataGridViewColumn[] {
            this.ID,
            this.DescripciónCorta,
            this.DescripciónLarga,
            this.ProductID});
            this.dgCatagories.Dock = DockStyle.Fill;
            this.dgCatagories.Location = new System.Drawing.Point(3, 3);
            this.dgCatagories.Name = "dgCatagories";
            this.dgCatagories.Size = new System.Drawing.Size(508, 230);
            this.dgCatagories.TabIndex = 0;
            // 
            // ID
            // 
            this.ID.DataPropertyName = "id";
            this.ID.HeaderText = "ID";
            this.ID.Name = "ID";
            this.ID.ReadOnly = true;
            this.ID.Visible = false;
            // 
            // DescripciónCorta
            // 
            this.DescripciónCorta.DataPropertyName = "Name";
            dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
            this.DescripciónCorta.DefaultCellStyle = dataGridViewCellStyle1;
            this.DescripciónCorta.HeaderText = "Descripción Corta";
            this.DescripciónCorta.Name = "DescripciónCorta";
            this.DescripciónCorta.Width = 150;
            // 
            // DescripciónLarga
            // 
            this.DescripciónLarga.DataPropertyName = "Description";
            dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
            this.DescripciónLarga.DefaultCellStyle = dataGridViewCellStyle2;
            this.DescripciónLarga.HeaderText = "Descripción Larga";
            this.DescripciónLarga.Name = "DescripciónLarga";
            this.DescripciónLarga.Width = 300;
            // 
            // ProductID
            // 
            this.ProductID.DataPropertyName = "Productid";
            this.ProductID.HeaderText = "ProductID";
            this.ProductID.Name = "ProductID";
            this.ProductID.ReadOnly = true;
            this.ProductID.Visible = false;
            // 
            // tabPage4
            // 
            this.tabPage4.Controls.Add(this.panel1);
            this.tabPage4.Location = new System.Drawing.Point(4, 22);
            this.tabPage4.Name = "tabPage4";
            this.tabPage4.Padding = new Padding(3);
            this.tabPage4.Size = new System.Drawing.Size(514, 236);
            this.tabPage4.TabIndex = 3;
            this.tabPage4.Text = "Impresoras";
            this.tabPage4.UseVisualStyleBackColor = true;
            // 
            // panel1
            // 
            this.panel1.Controls.Add(this.label6);
            this.panel1.Controls.Add(this.label5);
            this.panel1.Controls.Add(this.cmbPrinterKitchen);
            this.panel1.Controls.Add(this.cmbPrinterCashier);
            this.panel1.Location = new System.Drawing.Point(79, 61);
            this.panel1.Name = "panel1";
            this.panel1.Size = new System.Drawing.Size(359, 100);
            this.panel1.TabIndex = 0;
            // 
            // label6
            // 
            this.label6.AutoSize = true;
            this.label6.Location = new System.Drawing.Point(21, 56);
            this.label6.Name = "label6";
            this.label6.Size = new System.Drawing.Size(43, 13);
            this.label6.TabIndex = 4;
            this.label6.Text = "Cocina:";
            // 
            // label5
            // 
            this.label5.AutoSize = true;
            this.label5.Location = new System.Drawing.Point(21, 24);
            this.label5.Name = "label5";
            this.label5.Size = new System.Drawing.Size(31, 13);
            this.label5.TabIndex = 3;
            this.label5.Text = "Caja:";
            // 
            // cmbPrinterKitchen
            // 
            this.cmbPrinterKitchen.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
            this.cmbPrinterKitchen.FormattingEnabled = true;
            this.cmbPrinterKitchen.Location = new System.Drawing.Point(95, 48);
            this.cmbPrinterKitchen.Name = "cmbPrinterKitchen";
            this.cmbPrinterKitchen.Size = new System.Drawing.Size(244, 21);
            this.cmbPrinterKitchen.TabIndex = 2;
            // 
            // cmbPrinterCashier
            // 
            this.cmbPrinterCashier.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
            this.cmbPrinterCashier.FormattingEnabled = true;
            this.cmbPrinterCashier.Location = new System.Drawing.Point(95, 21);
            this.cmbPrinterCashier.Name = "cmbPrinterCashier";
            this.cmbPrinterCashier.Size = new System.Drawing.Size(244, 21);
            this.cmbPrinterCashier.TabIndex = 1;
            // 
            // tabPage5
            // 
            this.tabPage5.Controls.Add(this.lblTipoCambio);
            this.tabPage5.Controls.Add(this.txtRateExchange);
            this.tabPage5.Location = new System.Drawing.Point(4, 22);
            this.tabPage5.Name = "tabPage5";
            this.tabPage5.Size = new System.Drawing.Size(514, 236);
            this.tabPage5.TabIndex = 4;
            this.tabPage5.Text = "TipoCambio";
            this.tabPage5.UseVisualStyleBackColor = true;
            // 
            // lblTipoCambio
            // 
            this.lblTipoCambio.AutoSize = true;
            this.lblTipoCambio.Location = new System.Drawing.Point(129, 96);
            this.lblTipoCambio.Name = "lblTipoCambio";
            this.lblTipoCambio.Size = new System.Drawing.Size(69, 13);
            this.lblTipoCambio.TabIndex = 1;
            this.lblTipoCambio.Text = "Tipo Cambio:";
            // 
            // txtRateExchange
            // 
            this.txtRateExchange.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
            this.txtRateExchange.Location = new System.Drawing.Point(204, 93);
            this.txtRateExchange.Name = "txtRateExchange";
            this.txtRateExchange.Size = new System.Drawing.Size(134, 20);
            this.txtRateExchange.TabIndex = 0;
            this.txtRateExchange.TextAlign = HorizontalAlignment.Right;
            // 
            // tabPage6
            // 
            this.tabPage6.Controls.Add(this.lblIVA);
            this.tabPage6.Controls.Add(this.txtTax);
            this.tabPage6.Location = new System.Drawing.Point(4, 22);
            this.tabPage6.Name = "tabPage6";
            this.tabPage6.Size = new System.Drawing.Size(514, 236);
            this.tabPage6.TabIndex = 5;
            this.tabPage6.Text = "I.V.A.";
            this.tabPage6.UseVisualStyleBackColor = true;
            // 
            // lblIVA
            // 
            this.lblIVA.AutoSize = true;
            this.lblIVA.Location = new System.Drawing.Point(129, 96);
            this.lblIVA.Name = "lblIVA";
            this.lblIVA.Size = new System.Drawing.Size(44, 13);
            this.lblIVA.TabIndex = 1;
            this.lblIVA.Text = "% I.V.A.";
            // 
            // txtTax
            // 
            this.txtTax.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
            this.txtTax.Location = new System.Drawing.Point(204, 93);
            this.txtTax.Name = "txtTax";
            this.txtTax.Size = new System.Drawing.Size(134, 20);
            this.txtTax.TabIndex = 0;
            this.txtTax.TextAlign = HorizontalAlignment.Right;
            // 
            // tabPage8
            // 
            this.tabPage8.Controls.Add(this.dgUpdates);
            this.tabPage8.Location = new System.Drawing.Point(4, 22);
            this.tabPage8.Name = "tabPage8";
            this.tabPage8.Padding = new Padding(3);
            this.tabPage8.Size = new System.Drawing.Size(514, 236);
            this.tabPage8.TabIndex = 7;
            this.tabPage8.Text = "Actualizaciones";
            this.tabPage8.UseVisualStyleBackColor = true;
            // 
            // dgUpdates
            // 
            this.dgUpdates.AllowUserToAddRows = false;
            this.dgUpdates.AllowUserToDeleteRows = false;
            this.dgUpdates.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
            this.dgUpdates.Columns.AddRange(new DataGridViewColumn[] {
            this.dataGridViewTextBoxColumn1,
            this.dataGridViewTextBoxColumn2,
            this.dataGridViewTextBoxColumn3,
            this.dataGridViewTextBoxColumn4});
            this.dgUpdates.Dock = DockStyle.Fill;
            this.dgUpdates.Location = new System.Drawing.Point(3, 3);
            this.dgUpdates.Name = "dgUpdates";
            this.dgUpdates.Size = new System.Drawing.Size(508, 230);
            this.dgUpdates.TabIndex = 1;
            // 
            // dataGridViewTextBoxColumn1
            // 
            this.dataGridViewTextBoxColumn1.DataPropertyName = "id";
            this.dataGridViewTextBoxColumn1.HeaderText = "ID";
            this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1";
            this.dataGridViewTextBoxColumn1.ReadOnly = true;
            this.dataGridViewTextBoxColumn1.Visible = false;
            // 
            // dataGridViewTextBoxColumn2
            // 
            this.dataGridViewTextBoxColumn2.DataPropertyName = "Name";
            dataGridViewCellStyle3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
            this.dataGridViewTextBoxColumn2.DefaultCellStyle = dataGridViewCellStyle3;
            this.dataGridViewTextBoxColumn2.HeaderText = "Catalogo";
            this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2";
            this.dataGridViewTextBoxColumn2.ReadOnly = true;
            this.dataGridViewTextBoxColumn2.Width = 200;
            // 
            // dataGridViewTextBoxColumn3
            // 
            this.dataGridViewTextBoxColumn3.DataPropertyName = "Version";
            dataGridViewCellStyle4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
            this.dataGridViewTextBoxColumn3.DefaultCellStyle = dataGridViewCellStyle4;
            this.dataGridViewTextBoxColumn3.HeaderText = "Version";
            this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3";
            this.dataGridViewTextBoxColumn3.ReadOnly = true;
            this.dataGridViewTextBoxColumn3.Width = 150;
            // 
            // dataGridViewTextBoxColumn4
            // 
            this.dataGridViewTextBoxColumn4.DataPropertyName = "Update";
            this.dataGridViewTextBoxColumn4.HeaderText = "Actualizar";
            this.dataGridViewTextBoxColumn4.Name = "dataGridViewTextBoxColumn4";
            this.dataGridViewTextBoxColumn4.Resizable = DataGridViewTriState.True;
            this.dataGridViewTextBoxColumn4.SortMode = DataGridViewColumnSortMode.Automatic;
            // 
            // btnAccept
            // 
            this.btnAccept.Location = new System.Drawing.Point(459, 280);
            this.btnAccept.Name = "btnAccept";
            this.btnAccept.Size = new System.Drawing.Size(75, 23);
            this.btnAccept.TabIndex = 2;
            this.btnAccept.Text = "&Aceptar";
            this.btnAccept.UseVisualStyleBackColor = true;
    //        this.btnAccept.Click += new System.EventHandler(this.btnAccept_Click);
            // 
            // btnCancel
            // 
            this.btnCancel.Location = new System.Drawing.Point(378, 280);
            this.btnCancel.Name = "btnCancel";
            this.btnCancel.Size = new System.Drawing.Size(75, 23);
            this.btnCancel.TabIndex = 1;
            this.btnCancel.Text = "&Cancelar";
            this.btnCancel.UseVisualStyleBackColor = true;
            this.btnCancel.Click += new System.EventHandler(this.OnClickButton);
            // 
            // frmSystemConfig
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(546, 311);
            this.Controls.Add(this.btnCancel);
            this.Controls.Add(this.btnAccept);
            this.Controls.Add(this.tabControl1);
            this.FormBorderStyle = FormBorderStyle.FixedDialog;
            this.MaximizeBox = false;
            this.MinimizeBox = false;
            this.Name = "frmSystemConfig";
            this.ShowIcon = false;
            this.StartPosition = FormStartPosition.CenterScreen;
            this.Text = "Configuración";
            //this.Load += new System.EventHandler(this.frmSystemConfig_Load);
            this.tabControl1.ResumeLayout(false);
            this.tabPage7.ResumeLayout(false);
            this.tabPage7.PerformLayout();
            this.tabPage1.ResumeLayout(false);
            this.groupBox1.ResumeLayout(false);
            this.groupBox1.PerformLayout();
            this.tabPage2.ResumeLayout(false);
            this.tabPage2.PerformLayout();
            this.tabPage3.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.dgCatagories)).EndInit();
            this.tabPage4.ResumeLayout(false);
            this.panel1.ResumeLayout(false);
            this.panel1.PerformLayout();
            this.tabPage5.ResumeLayout(false);
            this.tabPage5.PerformLayout();
            this.tabPage6.ResumeLayout(false);
            this.tabPage6.PerformLayout();
            this.tabPage8.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.dgUpdates)).EndInit();
            this.ResumeLayout(false);
        }

        private void OnClickButton(object sender, EventArgs e)
        {
            CloseFormClicked(null, EventArgs.Empty);
        }

        private void CreateTaskButton_Click(object sender, EventArgs e)
        {
            //Model.SelectedProject = this.projectChooserControl.SelectedProject;
            //Model.Name = NameTextBox.Text.Trim();
            //Model.Description = DescriptionTextBox.Text.Trim();
            //Model.Visibilty = VisibilityCheckBox.Checked;
            //Model.Estimate = decimal.Parse(EstimateTextBox.Text, NumberStyles.AllowLeadingWhite | NumberStyles.AllowTrailingWhite);

            //AddTaskClicked(null, EventArgs.Empty);
            //SuccessPictureBox.Visible = true;
        }

        private void CloseButton_Click(object sender, EventArgs e)
        {
            
        }

        #region Implementation of IConfigurationsView

        public event EventHandler AddTaskClicked;
        public event EventHandler CloseFormClicked;

        public void CloseForm()
        {
            this.Close();
        }

        #endregion
    }
}
